 $('#next_step').click(function(){
  var kam=$("#kam").val();
	  if(kam==''){
       alert('请输入卡密');
        return;
	  }
     $.ajax({
		  url:'/pay/cdk',
		  type:'post',
		  'data':{type:'cdk',ka:kam},
          'cache':false,
          'dataType':'json',
		  success:function(data){
		  console.log('data',data);
           if(data.info!='success'){
            loading = false;
            alert(data.info);
           }else{
            loading = false;
            alert('充值成功');location.href='/user/user.html';
           }
		  },
		  error:function(){
			  alert('操作失败');
		  }
	  });
});
